import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.nio.charset.StandardCharsets;

    public class Test {
        public static void main(String[] args) {
            String fileContent = "姓名:张三,抓举成绩 106kg,挺举成绩 189kg。\n" +
                    "姓名:李四,抓举成绩 108kg,挺举成绩 186kg。\n" +
                    "姓名:周五,抓举成绩 112kg,挺举成绩 190kg。";

            File file = new File("D:\\score.txt");
            try (FileWriter writer = new FileWriter(file, StandardCharsets.UTF_8)) {
                writer.write(fileContent);
            } catch (IOException e) {
                e.printStackTrace();
            }
            System.out.println(" x = " + 5 + 6);
        }
    }
